﻿@model HRWEB.TEmployee
@using HRWEB.HtmlHelpers
@{
    ViewBag.Title = "查看个人信息";
}
<script type="text/javascript">
$(document).ready(function () { $("#accordion").accordion({ autoHeight: false, navigation: true }); });
</script>
<div align="center">
<input type="button" value="返回" onclick="history.back();" />
<div id="accordion" align="center">
<h3><a href="#basicInfo">个人基本信息</a></h3>
<div>
@using (Html.BeginForm("UpdateEmployee", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.HiddenFor(p => p.FEmployeeID)
<table class="detail-table">
<thead><tr><th colspan="5">基本信息</th></tr></thead>
        <tr>
            <td rowspan="8">
                <img width="200" height="268" src="@Url.Action("GetPhoto", "Admin", new { id = Model.FEmployeeID })" alt=""/>
            </td>
            <td>
                姓名
            </td>
            <td>@Model.FName
            </td>
            <td>
                性别
            </td>
            <td>@Html.FormatTDict(Model.TDictGender)
            </td>
        </tr>
        <tr>
            <td>
                出生日期
            </td>
            <td>@Html.FormatDateShort(Model.FBirthday)
            </td>
            <td>
                年龄
            </td>
            <td>@Model.GetAge()
            </td>
        </tr>
        <tr>
            <td>
                籍贯
            </td>
            <td>@Model.FBornCity
            </td>
            <td>
                民族
            </td>
            <td>@Html.FormatTDict(Model.TDictNation)
            </td>
        </tr>
        <tr>
            <td>
                政治面貌
            </td>
            <td>@Html.FormatTDict(Model.TDictParty)
            </td>
            <td>
                入党时间
            </td>
            <td>@Html.FormatDateShort(Model.FJoinPartyDate)
            </td>
           
        </tr>
         <tr>
            <td>编制</td><td>@Model.GetBelongOrgan()</td><td>身份证号</td><td>@Model.FCardID</td></tr>
            <tr><td>参加工作时间</td><td>@Html.FormatDateShort(Model.FFirstWorkDate)</td><td>工作年限</td><td>@Model.GetWorkedYears()</td></tr>
            <tr><td>进本单位时间</td><td>@Html.FormatDateShort(Model.FIntoHisDate)</td><td>本单位工作年限</td><td>@Model.GetIntoHisYears()</td></tr>
            <tr><td>婚姻状况</td><td>@Html.FormatTDict(Model.TDictMarriage)</td><td>联系电话</td><td>@Model.FMobileTel</td></tr>
            <tr><td><font size="2">上传照片(小于5M)</font><input type="file" name="Image" id="Image" style="width:100px" /></td><td>家庭住址</td><td colspan="3">@Model.FAdress</td></tr>
            <tr><td colspan="5" align="center"><input id="submit1" type="submit" value="保存更改" style="width:100%" /></td></tr>
    </table>}
    <br />
@{Html.RenderAction("EduLevel",new {id=Model.FEmployeeID});}
@{Html.RenderAction("Degree",new {id=Model.FEmployeeID});}
@{Html.RenderAction("Title",new {id=Model.FEmployeeID});}
@{Html.RenderAction("Household",new {id=Model.FEmployeeID});}
<br />
</div>
<h3><a href="#JPInfo">个人竞聘信息</a></h3>
<div>
@Html.ActionLink("修改论文", "AdminEdit", "Thesis", new { id = Model.FEmployeeID }, null)
@Html.ActionLink("修改著作", "AdminEdit", "PublishedBook", new { id = Model.FEmployeeID }, null)
@Html.ActionLink("修改专利", "AdminEdit", "Patent", new { id = Model.FEmployeeID }, null)
@Html.ActionLink("修改社会兼职", "AdminEdit", "ParttimeJob", new { id = Model.FEmployeeID }, null)
@Html.ActionLink("修改荣誉称号", "AdminEdit", "HonoraryTitle", new { id = Model.FEmployeeID }, null)
@Html.ActionLink("修改学术称号", "AdminEdit", "AcademicTitle", new { id = Model.FEmployeeID }, null)
@Html.ActionLink("修改课题立项", "AdminEdit", "ResearchProject", new { id = Model.FEmployeeID }, null)
@Html.ActionLink("修改课题鉴定", "AdminEdit", "ResearchIdentification", new { id = Model.FEmployeeID }, null)
@Html.ActionLink("修改科研获奖", "AdminEdit", "ResearchAward", new { id = Model.FEmployeeID }, null)

@{Html.RenderAction("AdminIndex","Thesis",new { id = Model.FEmployeeID});}
@{Html.RenderAction("AdminIndex","PublishedBook",new { id = Model.FEmployeeID});}
@{Html.RenderAction("AdminIndex","ResearchProject",new { id = Model.FEmployeeID});}
@{Html.RenderAction("AdminIndex","ResearchIdentification",new { id = Model.FEmployeeID});}
@{Html.RenderAction("AdminIndex","ResearchAward",new { id = Model.FEmployeeID});}
@{Html.RenderAction("AdminIndex","Patent",new { id = Model.FEmployeeID});}
@{Html.RenderAction("AdminIndex","ParttimeJob",new { id = Model.FEmployeeID});}
@{Html.RenderAction("AdminIndex","HonoraryTitle", new { id = Model.FEmployeeID });}
@{Html.RenderAction("AdminIndex","AcademicTitle", new { id = Model.FEmployeeID });}
</div>
<h3><a href="#adjustPerson">个人信息管理</a></h3>
<div>
@{Html.RenderAction("ChangeRoles",new {id=Model.FEmployeeID});}
</div>
</div>
<input type="button" value="返回" onclick="history.back();" />
    </div>